> - " onclick="checkAll();"> > - " onclick="uncheckAll();"> > - |
> > Modified: trunk/campsite/implementation/management/priv/articles/audioclips/cliplist.php > =================================================================== > --- trunk/campsite/implementation/management/priv/articles/audioclips/cliplist.php 2006-12-05 15:54:13 UTC (rev 6217) > +++ trunk/campsite/implementation/management/priv/articles/audioclips/cliplist.php 2006-12-05 17:18:03 UTC (rev 6218) > @@ -1,3 +1,31 @@ > +
> + > +
> > Modified: trunk/campsite/implementation/management/priv/articles/audioclips/search.php > =================================================================== > --- trunk/campsite/implementation/management/priv/articles/audioclips/search.php 2006-12-05 15:54:13 UTC (rev 6217) > +++ trunk/campsite/implementation/management/priv/articles/audioclips/search.php 2006-12-05 17:18:03 UTC (rev 6218) > @@ -117,87 +117,9 @@ > > ?> > > - > > -function checkAll() > -{ > - for (i = 0; i < ; i++) { > - document.getElementById("rw_"+i).className = 'list_row_click'; > - document.getElementById("checkbox_"+i).checked = true; > - marked_row[i] = true; > - } > -} // fn checkAll > - > - > -function uncheckAll() > -{ > - for (i = 0; i < ; i++) { > - document.getElementById("rw_"+i).className = default_class[i]; > - document.getElementById("checkbox_"+i).checked = false; > - marked_row[i] = false; > - } > -} // fn uncheckAll > - > -/** > - * Sets/unsets the pointer and marker in browse mode > - * > - * @param object the table row > - * @param integer the row number > - * @param string the action calling this script (over, out or click) > - * @param string the default class > - * > - * @return boolean whether pointer is set or not > - */ > -function setPointer(theRow, theRowNum, theAction) > -{ > - newClass = null; > - // 4. Defines the new class > - // 4.1 Current class is the default one > - if (theRow.className == default_class[theRowNum]) { > - if (theAction == 'over') { > - newClass = 'list_row_hover'; > - } > - } > - // 4.1.2 Current color is the hover one > - else if (theRow.className == 'list_row_hover' > - && (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])) { > - if (theAction == 'out') { > - newClass = default_class[theRowNum]; > - } > - } > - > - if (newClass != null) { > - theRow.className = newClass; > - } > - return true; > -} // end of the 'setPointer()' function > - > -/** > - * Change the color of the row when the checkbox is selected. > - * > - * @param object The checkbox object. > - * @param int The row number. > - */ > -function checkboxClick(theCheckbox, theRowNum) > -{ > - if (theCheckbox.checked) { > - newClass = 'list_row_click'; > - marked_row[theRowNum] = (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum]) > - ? true > - : null; > - } else { > - newClass = 'list_row_hover'; > - marked_row[theRowNum] = false; > - } > - row = document.getElementById("rw_"+theRowNum); > - row.className = newClass; > -} // fn checkboxClick > - > + > > -
> - > -
> - > } else { > ?> >
>
> > Modified: trunk/campsite/implementation/management/priv/templates/list_dir.php > =================================================================== > --- trunk/campsite/implementation/management/priv/templates/list_dir.php 2006-12-05 15:54:13 UTC (rev 6217) > +++ trunk/campsite/implementation/management/priv/templates/list_dir.php 2006-12-05 17:18:03 UTC (rev 6218) > @@ -37,87 +37,8 @@ > > ?> > > - > > -function checkAll() > -{ > - for (i = 0; i < ; i++) { > - document.getElementById("row_"+i).className = 'list_row_click'; > - document.getElementById("checkbox_"+i).checked = true; > - marked_row[i] = true; > - } > -} // fn checkAll > - > - > -function uncheckAll() > -{ > - for (i = 0; i < ; i++) { > - document.getElementById("row_"+i).className = default_class[i]; > - document.getElementById("checkbox_"+i).checked = false; > - marked_row[i] = false; > - } > -} // fn uncheckAll > - > -/** > - * Sets/unsets the pointer and marker in browse mode > - * > - * @param object the table row > - * @param integer the row number > - * @param string the action calling this script (over, out or click) > - * @param string the default class > - * > - * @return boolean whether pointer is set or not > - */ > -function setPointer(theRow, theRowNum, theAction) > -{ > - newClass = null; > - // 4. Defines the new class > - // 4.1 Current class is the default one > - if (theRow.className == default_class[theRowNum]) { > - if (theAction == 'over') { > - newClass = 'list_row_hover'; > - } > - } > - // 4.1.2 Current color is the hover one > - else if (theRow.className == 'list_row_hover' > - && (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])) { > - if (theAction == 'out') { > - newClass = default_class[theRowNum]; > - } > - } > - > - if (newClass != null) { > - theRow.className = newClass; > - } > - return true; > -} // end of the 'setPointer()' function > - > -/** > - * Change the color of the row when the checkbox is selected. > - * > - * @param object The checkbox object. > - * @param int The row number. > - */ > -function checkboxClick(theCheckbox, theRowNum) > -{ > - if (theCheckbox.checked) { > - newClass = 'list_row_click'; > - marked_row[theRowNum] = (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum]) > - ? true > - : null; > - } else { > - newClass = 'list_row_hover'; > - marked_row[theRowNum] = false; > - } > - row = document.getElementById("row_"+theRowNum); > - row.className = newClass; > -} // fn checkboxClick > - > |